<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 6/6/24
 * Time: 1:52 PM
 */

namespace App\Http\Controllers\Admin;


use App\Services\CustomerService;
use Illuminate\Http\Request;
use App\Http\Controllers\ResourceController;

class CustomerController extends ResourceController
{
    protected $service;

    public function __construct(CustomerService $service)
    {
        $this->service = $service;
    }


    /**
     * 获取客户列表
     *
     * @param Request $request
     * @return mixed
     */
    public function getList(Request $request)
    {
        return $this->responseWithSuccess($this->service->getCustomerList($request->post()));
    }
}
